package com.zbl.zblproject.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/24
 * 调拨单
 */
@TableName("zbl_allot_order")
public class ErpAllotOrder {

    @TableId(type = IdType.AUTO)
    private int id;

    private String allotSn;

    private LocalDateTime createTime;

    private String operator;

    private int status;

    @TableField(exist = false)
    private List<ErpAllotOrderItem> items;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAllotSn() {
        return allotSn;
    }

    public void setAllotSn(String allotSn) {
        this.allotSn = allotSn;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<ErpAllotOrderItem> getItems() {
        return items;
    }

    public void setItems(List<ErpAllotOrderItem> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "ErpAllotOrder{" +
                "id=" + id +
                ", allotSn='" + allotSn + '\'' +
                ", createTime=" + createTime +
                ", operator='" + operator + '\'' +
                ", status=" + status +
                '}';
    }
}
